package com.chk.article.controller;


import com.chk.article.service.impl.FileService;
import com.chk.commom.utils.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RefreshScope
@RestController
@RequestMapping("/auth/article")
public class AuthFileController {
    @Value("${qiniu.accessKey}")
    private String QINIU_AK;
    @Value("${qiniu.secretKey}")
    private String QINIU_SK;
    @Value("${qiniu.bucket}")
    private String QINIU_BUCKET;
    @Autowired
    private FileService fileService;
    @GetMapping("/upToken")
    public CommonResult getUpToken(){
        return fileService.getUpToken();
    }
}
